package com.whmall.service.crm.enumeration;

/**
 * 公司用户券业务来源
 */
public enum CompanyUserCouponBusinessSourceEnum {

    // 主ID：活动ID ID：活动奖品ID
    ACTIVITY_PRIZE(1, "活动奖品");

    public static CompanyUserCouponBusinessSourceEnum fromValue(int value) {
        for (CompanyUserCouponBusinessSourceEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }
        return null;
    }

    CompanyUserCouponBusinessSourceEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }
    private final int value;

    private final String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
